cmake_minimum_required(VERSION 2.6)

set(CMAKE_PROJECT_NAME "test_prt")

find_path(ZLIB_INCLUDE_DIR zlib.h $ENV{HFS}/toolkit/include/zlib)

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
    find_library(ZLIB_LIBRARY NAME zdll PATHS $ENV{HFS}/custom/houdini/dsolib)
else(CMAKE_SYSTEM_NAME MATCHES "Windows")
    find_library(ZLIB_LIBRARY NAME z PATHS $ENV{HFS}/dsolib)
endif(CMAKE_SYSTEM_NAME MATCHES "Windows")

set(BOOST_INCLUDE_DIR $ENV{HFS}/toolkit/include)

include_directories(${ZLIB_INCLUDE_DIR} ${BOOST_INCLUDE_DIR} ${INCLUDE_DIRECTORIES} ${CMAKE_CURRENT_SOURCE_DIR} ${INCLUDE_OUTPUT_PATH} /usr/include)

add_executable(${CMAKE_PROJECT_NAME} ../PRT.cpp test.cpp unit--.cpp)

target_link_libraries(${CMAKE_PROJECT_NAME} ${ZLIB_LIBRARY})
